<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
</head>
<body>
	<script type="text/javascript">
		// var a = "123";			//字符串
		// var b = parseInt(a);	//转为了数字
		// console.log(b);			//输出数字
		// console.log(typeof b);	//输出类型

		//console.log(parseInt("365天每天都爱你10000次"));

		//console.log(parseInt(5.8));

		// var a = parseInt(5.8) + parseInt(4.7);
		// console.log(a);

		 var a = parseInt(5.8 + 4.7);
		 console.log(a);
	</script>
</body>
</html>